import java.util.Arrays;

public class Test {
    public static int count=0;
    public static int fib1(int n){
        if(n==1){
            count++;
            return 1;
        }
        if(n==2){
            count++;
            return 2;
        }
        return fib1(n-1)+fib1(n-2);
    }
    public static int fib2(int n){
        if(n==1){
            return 0;
        }
        if(n==2){
            return 1;
        }
        int n1=1;
        int n2=2;
        int n3=-1;
        for (int i = 2; i <n ; i++) {
            n3=n1+n2;
            n1=n2;
            n2=n3;
        }
        return n3;
    }

    public static void main(String[] args) {
        int[]arr={1,2,3,4,5};
        for (int i = 0; i <arr.length; i++) {
            System.out.println(arr[i]);
        }
        for (int x:arr) {
            System.out.println(x);
        }
        String ret=Arrays.toString(arr);
        System.out.println(ret);
    }
    public static void print(int a){
        if(a<10){
            System.out.println(a);
            return;
        }
        print(a/10);
        System.out.println(a%10);
        return ;
    }
}

